package com.effectiv.crm.service.impl;


import java.util.List;
import java.util.Locale;


import javax.inject.Inject;
import javax.inject.Named;

import jodd.cache.Cache;
import jodd.cache.LRUCache;


import lombok.extern.slf4j.Slf4j;

import com.effectiv.crm.domain.I18nMessage;

import com.effectiv.crm.repository.I18nMessageRepository;
import com.effectiv.crm.service.api.I18nMessageService;

@Slf4j
@Named
public class I18nMessageServiceImpl 
		implements I18nMessageService {
	
	@Inject
	private I18nMessageRepository repository;
	
    private final Cache<String, I18nMessage> properties = new LRUCache<String, I18nMessage>(200, 0);

	@Override
	public void save(I18nMessage message) {
		
		
	}

	@Override
	public void update(I18nMessage account) {
		
		
	}

	@Override
	public List<I18nMessage> findAll() {
		
		return null;
	}

	@Override
	public I18nMessage findOne(String id) {
		
		return null;
	}

	@Override
	public void delete(I18nMessage account) {
		
		
	}

	@Override
	public I18nMessage findByKeyAndLocale(String key, Locale locale) {
		//First look in cache
		
		//then look in db
		
		//then look for none , none
		
		//push to cache 
		return null;
	}
 
	
   
    
 
    
    
   
    
}
